-- GENERATED SPELL FOR [Condemned Acolyte] --


function spell0_7068(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(25058,pUnit)
pUnit:RegisterEvent('Sorts_7068', 15000, 1)
end

function spell1_7068(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(15654,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7068', 18000, 1)
end

function Sorts_7068(pUnit, Event)
local choix_sorts_7068 = math.random(0, 1)
if choix_sorts_7068 == 0 then
pUnit:RegisterEvent('spell0_7068', 1, 1)
end
if choix_sorts_7068 == 1 then
pUnit:RegisterEvent('spell1_7068', 1, 1)
end
end

function mob7068_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7068', math.random(1500, 3000), 1)
end

function mob7068_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7068_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7068_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7068, 1, 'mob7068_Action')
RegisterUnitEvent(7068, 2, 'mob7068_Leave')
RegisterUnitEvent(7068, 3, 'mob7068_Kill')
RegisterUnitEvent(7068, 4, 'mob7068_Die')
